package org.stayfool.client.util.future;

import io.netty.handler.codec.mqtt.MqttPubAckMessage;
import org.stayfool.client.event.OneTimeEventCallBack;

/**
 * Created by stayfool on 2017/2/24.
 */
public class PublishFuture extends AbstractFuture<MqttPubAckMessage>
        implements Future<MqttPubAckMessage>, OneTimeEventCallBack<MqttPubAckMessage> {

    @Override
    public void callback(MqttPubAckMessage msg) {
        setDone(msg);
    }
}
